package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Xzdy generated by hbm2java
 */
@Entity
@Table(name = "xzdy")
public class Xzdy implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private Long ny;
    private Long gsrrs;
    private BigDecimal gsrhj;
    private Long zsrrs;
    private BigDecimal zsrhj;
    private Long dsrrs;
    private BigDecimal dsrhj;
    private Short xh;

    public Xzdy()
    {
    }

    public Xzdy( Long id )
    {
        this.id = id;
    }

    public Xzdy( Long id,
                 Jbqk jbqk,
                 String username,
                 String operation,
                 Date optdate,
                 Long ny,
                 Long gsrrs,
                 BigDecimal gsrhj,
                 Long zsrrs,
                 BigDecimal zsrhj,
                 Long dsrrs,
                 BigDecimal dsrhj,
                 Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.ny = ny;
        this.gsrrs = gsrrs;
        this.gsrhj = gsrhj;
        this.zsrrs = zsrrs;
        this.zsrhj = zsrhj;
        this.dsrrs = dsrrs;
        this.dsrhj = dsrhj;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "ny")
    public Long getNy()
    {
        return this.ny;
    }

    public void setNy( Long ny )
    {
        this.ny = ny;
    }

    @Column(name = "gsrrs", precision = 18, scale = 0)
    public Long getGsrrs()
    {
        return this.gsrrs;
    }

    public void setGsrrs( Long gsrrs )
    {
        this.gsrrs = gsrrs;
    }

    @Column(name = "gsrhj", precision = 18)
    public BigDecimal getGsrhj()
    {
        return this.gsrhj;
    }

    public void setGsrhj( BigDecimal gsrhj )
    {
        this.gsrhj = gsrhj;
    }

    @Column(name = "zsrrs", precision = 18, scale = 0)
    public Long getZsrrs()
    {
        return this.zsrrs;
    }

    public void setZsrrs( Long zsrrs )
    {
        this.zsrrs = zsrrs;
    }

    @Column(name = "zsrhj", precision = 18)
    public BigDecimal getZsrhj()
    {
        return this.zsrhj;
    }

    public void setZsrhj( BigDecimal zsrhj )
    {
        this.zsrhj = zsrhj;
    }

    @Column(name = "dsrrs", precision = 18, scale = 0)
    public Long getDsrrs()
    {
        return this.dsrrs;
    }

    public void setDsrrs( Long dsrrs )
    {
        this.dsrrs = dsrrs;
    }

    @Column(name = "dsrhj", precision = 18)
    public BigDecimal getDsrhj()
    {
        return this.dsrhj;
    }

    public void setDsrhj( BigDecimal dsrhj )
    {
        this.dsrhj = dsrhj;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
